Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 5 - Sequence Grabber Components / Sequence Grabber Components Reference
Application-Defined Functions /


MyCompressFunction

The sequence grabber component calls your compress function in order to start compressing the captured video image.

Your compress function must support the following interface:

pascal ComponentResult MyCompressFunction (SGChannel c, 
                                           short bufferNum, 
                                           long refCon);
c
Specifies the reference that identifies the channel for this operation.
bufferNum
Identifies the buffer for this operation. You can obtain information about this buffer by calling the SGGetBufferInfo function, which is described on page 5-98.
refCon
Contains a reference constant value. You can set this value by calling the SGSetChannelRefCon function, which is described on page 5-64.
RESULT CODES
cantDoThatInCurrentMode-9402Request invalid in current mode
Image Compression Manager errors

SEE ALSO
Your compress function can use the sequence grabber component's SGCompressFrame function to support the default behavior. SGCompressFrame is described on page 5-102. This function uses the Image Compression Manager to compress the video image. For more on the Image Compression Manager, see Inside Macintosh: QuickTime.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help